package com.leileimann.tour.entity;

import org.neo4j.ogm.annotation.NodeEntity;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @author leileiMann
 * @date 2022/3/25 17:52
 * 收藏类
 */
@NodeEntity
public class Collect {
    //收藏名称
    private String collectname;
    //收藏归属者
    private String tel;
    //收藏时间   neo4j中不知道怎么查看数据类型，所以全部弄成字符串
    private String collectTime;
    private String locationX;
    private String locationY;
    //收藏的集合  可以用作用户查看所有的收藏使用
    private List<Collect> collectList;

    public Collect(String collectname, String tel, String collectTime, String locationX, String locationY) {
        this.collectname = collectname;
        this.tel = tel;
        this.collectTime = collectTime;
        this.locationX = locationX;
        this.locationY = locationY;
    }

    public Collect() {
    }

    public String getCollectname() {
        return collectname;
    }

    public void setCollectname(String collectname) {
        this.collectname = collectname;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(String collectTime) {
        this.collectTime = collectTime;
    }

    public String getLocationX() {
        return locationX;
    }

    public void setLocationX(String locationX) {
        this.locationX = locationX;
    }

    public String getLocationY() {
        return locationY;
    }

    public void setLocationY(String locationY) {
        this.locationY = locationY;
    }

    public List<Collect> getCollectList() {
        return collectList;
    }

    public void setCollectList(List<Collect> collectList) {
        this.collectList = collectList;
    }

    @Override
    public String toString() {
        return "Collect{" +
                "collectname='" + collectname + '\'' +
                ", tel='" + tel + '\'' +
                ", collectTime='" + collectTime + '\'' +
                ", locationX='" + locationX + '\'' +
                ", locationY='" + locationY + '\'' +
                ", collectList=" + collectList +
                '}';
    }
}
